package com.neusoft.elmboot.service;

import com.neusoft.elmboot.dto.UserDTO;
import com.neusoft.elmboot.dto.UserPrivacyDTO;
import com.neusoft.elmboot.po.User;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;

public interface UserService {

	public User userRegister(User user);
	public User userLogin(String userName,String password);
	public User getUserById(String userId);
	public UserDTO changeUserInfo(UserDTO user);
	public int changeAvatar(String userId, MultipartFile file) throws IOException;
	public int changePassword(UserPrivacyDTO userPrivacyDTO);


}
